package org.flashbrighton.as3bots.events
{
	import flash.events.Event;

	public class HitEvent extends Event
	{
		private var _collisionPoint:Number;		
		
		public function HitEvent(type:String, collisionPoint:Number)
		{
			super(type);
			_collisionPoint = collisionPoint;
		}
		
		/** 
		 * returns the point of collision:
		 * a value between -1 and 1.
		 * 0 meaning the head of the bot, 
		 * -1 or 1 the back, 
		 * 0.5 the right side and -0.5 the left one...
		 * 
		 */
		public function get collisionPoint():Number
		{
			return _collisionPoint;
		}		
				
	}
}